package com.indeep.indeepmasterstation.feign;

import com.indeep.common.result.JsonResult;
import com.indeep.indeepmasterstation.feign.rollbak.LoginUserFeignClientBack;
import com.indeep.indeepmasterstation.vo.CodeDTO;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "indeep-user",fallback = LoginUserFeignClientBack.class)
public interface LoginUserFeignClient {
     String preIndex = "/userInfo/";
    @PostMapping(value=preIndex+"userLogin/jiguang/sendCode")
    JsonResult sendCode(@RequestParam("phoneNumber") String phoneNumber);
}
